home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
maximus
/
max2tbbs.zip
/
TIFORMAT.DOC
< prev
next >
Wrap
Text File
|
1994-08-08
|
7KB
|
167 lines
TBBS Userlog Importer: input file format
by Paul Blitz
Version 1.00
13/04/94
General
=======
The file used as the input to TUIMP is a simple comma delimited file, with a
total maximum line length of 255 characters.
The first line of the input file is special: it contains a "version" for the
file's format. Currently, this is "1.0". TUIMP checks this to make sure it
can cope with the format.
All the other lines contain user data.
The input file does not include EVERY POSSIBLE piece of data, simply because
many of them can be quite sensible zeroed (eg calls today).
To make things flexible, there is no limit on the length of the string items
in the input file: however, those which are too long for TBBS will be simply
truncated. (This point is worth noting in the case of the PASSWORD: many
other BBS systems allow passwords of upto 16 characters, whilst TBBS only
allows 8: as long as your users are made aware of this fact, then there will
be few problems.
If TUIMP finds a tilde character ("~") in a string, this will be converted
to a comma: this is the reverse effect of the "otherBBS exporting program".
This was done as it is not possible to include a comma in comma-delimited
data (which is obvious when you spend a moment to think about it).
Field by field
==============
To make life easier, the line format is defined by the order in which the
items are held in the TBBS userlog. Here's a list of all the items in the
USERLOG.BBS file, with comments on whether they are imported (from the input
file) set to sysop default, or zeroised.
Byte Desc Comment
---- ---- -------
0-49 First / Last name, Location imported (48 chars max)
50 Password imported (8 chars max)
58 User priviledge imported
59 A1 flags imported (as a decimal number)
60 A2 flags imported(as a decimal number)
61 Nulls needed imported
62 Config bits: LFs, Upper case, ANSI / IBM imported, others set
Ansi, IBM. as sysop record
63 Terminal Width imported
64 CLS codes (1st three chars) set as sysop record
67 Total Logons imported
69 User expert level set as sysop record
70 Last message read zeroised
72 Review flags zeroised
73 Per Call time limit set as sysop record
74 Last 10 logons (to be decided!)
124 SYFGS (1st 32) zeroised
128 A3 flags imported (as a decimal number)
129 A4 flags imported (as a decimal number)
130 CLS codes (last three chars) set as sysop record
135 Total bytes downloaded imported
139 Total bytes uploaded imported
143 Download daily limit set as sysop record
147 Daily calls limit set as sysop record
149 Daily time limit set as sysop record
151 Mins used today zeroised
153 Billing class 0 time limit zeroised
156 Total logged on time imported
159 SYFGS (33-56) zeroised
162 Billing class 0 time remaining zeroised
165 Bytes downloaded today zeroised
169 -more- page length imported
170 Notes field imported
234 Netmail credit imported
236 Netmail debit imported
238 Invisible flag + reserved zeroised
239 Upload protocol imported
240 Download protocol imported
241 SYFGS (57-64) zeroised
242 Message entry styles set as sysop record
243 Password changed date zeroised
246 Canansi / pwd expired zeroised
247 reserved zeroised
250 aged cubbyholed msgs zeroised, even for sysop
252 pointer to USERLOG.PTR zeroised, even for sysop
256 Addr1, Addr2, City, State, imported (121 chars max)
Zip, Phone, Country
Here's an imaginary input line (split so you can see it)
Paul Blitz,Winchester_ Hants,PASSWORD,10,12,44,0,ANSI,IBM,80,87,32,16...
... ,2829312,277504,0,24,*the sysop*,100,22,1,1,,,,,,0962-885696,
This all means:
First / Last name, Location "Paul Blitz", from "Winchester, Hants"
Password PASSWORD
Priv Level 200
A1 flags 12 = $0C = ....X.X.
A2 flags 44 = $2C = ..X.X.X.
A3 flags 0 = $00 = ........
A4 flags 0 = $00 = ........
Nulls needed 0
Config bits: LFs, Upper case, Ansi=Yes, IBM=Yes
Ansi, IBM.
Terminal Width 80
Total Logons 87
Total bytes downloaded 2,829,312
Total bytes uploaded 277,504
Total logged on time 0
-more- page length 24
Notes field *the sysop*
Netmail credit 100 cents
Netmail debit 22 cents
Upload Protocol 1 = zmodem (note 1)*
Download Protocol 1 = zmodem
Addr1, Addr2, City, State, Phone = 0962-885696, others blank.
Zip, Phone, Country
(*note 1: 0 = None (auto select each call)
1 = Prompted Ascii
2 = Ascii, Xon after c/r rcvd
3 = Ascii, Xon/off flow control
4 = Xmodem
5 = Xmodem-1k
6 = Ymodem (batch)
7 = Ymodem-g (batch)
8 = SEALink
9 = Kermit
A = SuperKermit (sliding Windows)
B = Zmodem)
You will see how the "_" in the location was changed back to a ",".
The "Total logged on time" is zero simply because the "exporting" BBS setup
doesn't have this information, so puts in a zero instead.
The A3 and A4 flags were zero because the (imaginary) exporting BBS only
supports 16 bit-flags.
The priv level, 200, equates to 20 times the defined priv ("sysop") on the
"other" BBS... In this case, you will get a range of privs, 20, 40 60....
The multiplaction factor depends on the "other" BBS, and is chosen to expand
the range as much as possible, whilst keeping the maximum value under 255.
For full details, read the exporting program details.
If the Upload or Download figure is > 2 gigabytes, then you're gonna see
some strange figures, as I'm only using a signed 32 bit number for those
values.... if it's THAT much of a problem, contact me!
Modifications / Extra notes
---------------------------
Rev 1.01 :
discovered that (a) the user name must be in CAPS; (b) the password should
be NULL filled, not space filled.